package com.qiche.service2.impl;

import com.qiche.service.impl.BaseService;
import com.qiche.service2.Verification2Service;
import com.qiche.model.Verification2;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author chendezhi
 * @date 2018/4/11 13:52
 */
@Service
public class Verification2ServiceImpl extends BaseService<Verification2> implements Verification2Service {
    @Override
    public List<Verification2> selectByCardId(Long cardId) {
        Example example = new Example(Verification2.class);
        Example.Criteria criteria = example.createCriteria();
        criteria.andEqualTo("cardId",cardId);
        return selectByExample(example);
    }
}
